package com.apps.sannotation.identity;


import java.lang.annotation.*;
import java.time.LocalDateTime;
import java.util.concurrent.TimeUnit;

/**
 * 表明哪个是该记录创建时间的字段注解
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface GmtCreate {

    TimeUnit unit() default TimeUnit.SECONDS;

    Class<?> Cla() default LocalDateTime.class;

}
